﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    public class CYYGH013App : ApiBaseApp<CYYGH013>
    {
        public CYYGH013App(IApiRepository<CYYGH013> repository) : base(repository)
        {
        }
        /// <summary>
        /// 查询指定排班号源信息(指定排班号源查询)
        /// </summary>
        /// <param name="pbxh">排班序号</param>
        /// <returns></returns>
        public IEnumerable<CYYGH013> QueryCYYGH013ByPbxh(string pbxh)
        {
            List<SqlParameter> param = new List<SqlParameter>();
            param.Add(new SqlParameter("@Pbxh", pbxh));
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<CYYGH013>("exec usp_web_webtrans_CYYGH013 @pbxh=@Pbxh,@czyh=@Czyh", param);
            return result;
        }
    }
}
